package com.example.asus.recyclerview;

import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class StuviewHoder extends RecyclerView.ViewHolder {
    public StuviewHoder(View itemView) {
        super(itemView);
        /*实现点击事件*/
        view=itemView;
        /*构造时进行绑定*/
        headerview=itemView.findViewById(R.id.tv_head);
        nameview=itemView.findViewById(R.id.tv_name);
        ageview=itemView.findViewById(R.id.tv_age);
    }
    View view;
   ImageView headerview;
    TextView nameview;
    TextView ageview;
}
